<div class="order-main-hook main-hook">
    <span @click.stop="emitPage" class="emit-page-hook"></span>
    <span @click.stop="prePage" class="pre-page-hook"></span>
    <span @click.stop="refreshPage" class="refresh-page-hook"></span>
    <div class="box-wrapper box1-hook" v-show="boxs.box1.show">
        <div class="order-wrapper order-hook">
            <div class="title">
                当前位置：<span class="active">工单管理</span>
            </div>
            <%if(checkAuthority('pallet-lease-query')){%>
            <form class="search form-search-hook">
                <div class="row">
                    <span class="search-label">来源</span>
                    <select class="form-control w80" name="leaseType">
                        <option value="">全部</option>
                        <option v-for="(type,index) in leaseType" :value="type.id" v-text="type.name"></option>
                    </select>
                    <span class="interval-lg"></span>
                    <span class="search-label">故障类型</span>
                    <select class="form-control w120" name="orderStatus">
                        <option value="">全部</option>
                        <option v-for="(type,index) in orderStatus  " :value="type.id" v-text="type.name"></option>
                    </select>
                    <span class="interval-lg"></span>
                    <span class="search-label">当前状态</span>
                    <select class="form-control w150" name="paymentFlag">
                        <option value="">全部</option>
                        <option v-for="(type,index) in paymentFlag" :value="type.id" v-text="type.name"></option>
                    </select>
                </div>
                <div class="row">
                    <span class="search-label">告警时间</span>
                    <div class="date-time-box">
                        <input placeholder="开始时间" class="search-input datetime" type="text" name="orderStartTime" id="startdate">
                    </div>
                    <span class="interval-xs"></span>
                    <span>—</span>
                    <span class="interval-xs"></span>
                    <div class="date-time-box">
                        <input placeholder="结束时间" class="search-input datetime" type="text" name="orderEndTime" id="enddate">
                    </div>
                    <span class="interval-lg"></span>
                    <span class="search-label">关键字查询</span>
                    <select class="form-control w80 account-status-hook"  name="key">
                        <option v-for="(role,index) in key" :value="role.id" v-text="role.name"></option>
                    </select>
                    <span class="interval-xs"></span>
                    <input type="text" class="search-input lg" name="keyword" placeholder="关键字模糊搜索" @keyup.enter="searchKey()">
                    <span class="interval-lg"></span>
                    <button type="button" class="btn btn-blue search-hook">查询</button>
                    <span class="interval-xs"></span>
                    <button type="reset" class="btn btn-gray resert">清空</button>
                </div>
            </form>
            <%}%>
            <div class="custom-table-wrapper">
                <table class="custom-table order-table-hook"></table>
            </div>
        </div>
    </div>
    <div class="box-wrapper box2-hook" v-show="boxs.box2.show"></div>
    <div class="box-wrapper box3-hook" v-show="boxs.box3.show"></div>
    <div class="box-wrapper box4-hook" v-show="boxs.box4.show"></div>
</div>
<script type="text/javascript" src="js/back/workorder/order/order.js" custom></script>